<?php

/*
 * KETETNTUAN AUTH/LEVEL ACCESS:
 *  - Pengaturan Otoritas hanya untuk user setingkat administrator
 *    SubMenu= 321, 322, 329
 *    AuthLevel= 
 */

$tValidation = new InputValidation();
$tIsDefault = false;

$mSubmenuSelect = ($_POST[submenu] ? $_POST[submenu] :
                $_GET[submenu]);
$tValidation->SetInput($mSubmenuSelect);
$tValidation->SetPattern(pUnsignedInt);
$mSubmenuSelect = $tValidation->CheckValidation();

switch ($mSubmenuSelect) {
    //MASTER DATA
    ////
    //INISIALISASI DATA
    ////
    //PENGATURAN AKUN
    case 311 : {
            $tPage = 'view/akun/form-setting.php';
            break;
        }

    case 316 : {
            $tPage = 'view/akun/exec/exec-akun_username.php';
            break;
        }
    case 317 : {
            $tPage = 'view/akun/exec/exec-akun_password.php';
            break;
        }
    case 318 : {
            $tPage = 'view/akun/exec/exec-akun_email.php';
            break;
        }

    //PENGATURAN OTORITAS
    case 321 : {
            $myApp->SetLevelAccess(true);
            $tPage = 'view/otorisasi/daftar-otorisasi.php';
            break;
        }
    case 322 : {
            $tPage = 'view/otorisasi/form-otorisasi.php';
            break;
        }

    case 328 : {
            $tPage = 'view/otorisasi/exec/exec-reset_password.php';
            break;
        }

    case 329 : {
            $tPage = 'view/otorisasi/exec/exec-otorisasi.php';
            break;
        }


    //CORE AKUN
    case 811 : {
            $tPage = 'view/akun/service-login.php';
            break;
        }
        
    case 819 : {
            $tPage = 'view/akun/service-logout.php';
            break;
        }
        

    //VERIFIKASI DATA
    ////
    ////
    //APPLICATION INFORMATION SCHEMA
    case 911 : {
            $tPage = 'view/informasi_aplikasi/get-fk.php';
            break;
        }


    default: {
            $tIsDefault = true;
            $tPage = "home.php";
            break;
        }
}


//SET PAGE
if ($tIsDefault)
    $myApp->SetPage($tPage);
else
    $myApp->SetPage(APP_LOADER_PATH . 'core/' . $tPage);
?>